package com.jdk.learn.jvm;

import java.util.ArrayList;

/**
 *
 * VM 参数：
 * -Xms20M -Xmx20M -XX:+HeapDumpOnOutOfMemoryError
 * 分享文件(夹):MemoryAnalyzer-1.7.0.20170613-win32.win32.x86_64.zip
 * 链接: https://pan.baidu.com/s/1rf18tuQLEVyPNqy0bTUisA 密码: jqsc
 */
public class _001FirstDemo {
    public static void main(String[] args) {
        ArrayList<demo> demos=new ArrayList<>();
        while (true) {
            demos.add(new demo());
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
class  demo{

}
